<script type="text/ecmascript-6">
    import { Navbar } from 'vmc';

    import { queryDemoDetail } from '../../datas/actions/demo';
    import { getDemoDetail } from '../../datas/getters/demo';

    export default {
        components: {
            Navbar
        },
        data() {
            return {
                myID: this.$route.params.id
            }
        },
        methods: {
        },
        route: {
            data(t) {
                this.$Loading();
                this.queryDemoDetail(this.myID);
            }
        },
        vuex: {
            actions: {
                queryDemoDetail
            },
            getters: {
                detail: getDemoDetail
            }
        }
    }
</script>